﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userlist.aspx.cs" Inherits="admin_user" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
            width: 400px;
        }
        .style2
        {
            width :100px;
            }
        .table2{border:#ffffff solid;border-width:1 0 0 1;}
        
        .td{border:#ffffff solid;border-width:0 1 1 0}
    </style>
    <script language="javascript" type="text/javascript">

        function QR() {

            return confirm("确认吗？");
        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div><table class="style1">
        <tr>
        <td>账号</td><td>密码</td><td>权限</td><td>详细</td>
        </tr>
        </table>
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
        <ItemTemplate> 
         <table class="table2" border="1px" cellpadding ="0"  cellspacing="0">
            <tr>
                <td class="style2"><%#Eval("uname") %></td>
                <td class="style2"><%#Eval("upwd") %></td>
                <td class="style2"><%#Eval("upower") %></td>
                <td><asp:LinkButton ID="btndel" runat="server" CommandName="del" OnClientClick="return QR()" CommandArgument='<%#Eval("uid") %>'>删除</asp:LinkButton></td>
                <td><asp:Button ID="btne" runat="server" Text="编辑" CommandName="e" CommandArgument='<%#Eval("uid") %>' /></td>
            </tr>
        </table>           
        </ItemTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
